package com.han.http.client.paramter;

/**
 * @fileName: RequestHeader
 * @author: Han
 * @date: 2018/6/21 13:58
 * @dscription: 请求头
 */
public class RequestHeader implements KeyValuePair {

    /**
     * 键名
     */
    private String key;
    /**
     * 值名
     */
    private String value;

    /**
     * 使用键值对初始化头
     *
     * @param key   键
     * @param value 值
     */
    public RequestHeader(String key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public String getKey() {
        return key;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return key + ":" + value;
    }
}
